package com.cb.common.map;

import java.util.HashMap;
import java.util.Map;

import com.cb.common.enumType.OrderStatus;
import com.cb.common.enumType.PassengerType;

public class BOrderCommon {
	private static Map<OrderStatus,Long> bOrderStatus=new HashMap<OrderStatus, Long>();
	private static Map<PassengerType,Long> passengerTypes=new HashMap<PassengerType, Long>();
	//初始化订单类型
	static{
		
//		bOrderStatus.put(OrderStatus.WAIT_CONFIRM, Long.valueOf("10"));
		bOrderStatus.put(OrderStatus.APPLY_CHANGE, Long.valueOf("40"));
		bOrderStatus.put(OrderStatus.APPLY_REFUNDMENT, Long.valueOf("30"));
		bOrderStatus.put(OrderStatus.BOOK_OK, Long.valueOf("0"));
		bOrderStatus.put(OrderStatus.CANCEL_OK, Long.valueOf("12"));
		bOrderStatus.put(OrderStatus.CHANGE_OK, Long.valueOf("42"));
		bOrderStatus.put(OrderStatus.PAY_OK, Long.valueOf("1"));
		bOrderStatus.put(OrderStatus.REFUND_OK, Long.valueOf("39"));
		bOrderStatus.put(OrderStatus.TICKET_LOCK, Long.valueOf("5"));
		bOrderStatus.put(OrderStatus.TICKET_OK, Long.valueOf("2"));
		bOrderStatus.put(OrderStatus.WAIT_REFUNDMENT, Long.valueOf("31"));
		bOrderStatus.put(OrderStatus.WAIT_MAIL, Long.valueOf("50"));
		bOrderStatus.put(OrderStatus.WAIT_PRICE_CONFIRM, Long.valueOf("6"));
		bOrderStatus.put(OrderStatus.WAIT_SEAT_CONFIRM, Long.valueOf("7"));
		bOrderStatus.put(OrderStatus.NO_TICKET_REFUNDMENT, Long.valueOf("9"));
		bOrderStatus.put(OrderStatus.REFUND, Long.valueOf("8"));
		bOrderStatus.put(OrderStatus.EXCEPTION, Long.valueOf("1111"));
		bOrderStatus.put(OrderStatus.ORDER_FINIAL, Long.valueOf("10000"));
		bOrderStatus.put(OrderStatus.RETURN_MONEY_COMPLETED, new Long("444"));
		passengerTypes.put(PassengerType.AD, Long.valueOf("1"));
		passengerTypes.put(PassengerType.CHD, Long.valueOf("0"));
	}
	
	/**
	 * 获取订单状态MAP
	 * @return
	 */
	public static Map<OrderStatus,Long> getOrderStatusMap(){
		return bOrderStatus;
	}
	
	/**
	 * 获取旅客类型MAP
	 * @return
	 */
	public static Map<PassengerType,Long> getPassengerTypeMap(){
		return passengerTypes;
	}
}
